package com.nova.edc.service.system.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.nova.edc.dao.system.RoleSystemMenuDao;
import com.nova.edc.model.system.RoleSystemMenu;
import com.nova.edc.service.system.RoleSystemMenuService;
import com.nova.frame.dao.criterion.Restrictions;

public class RoleSystemMenuServiceImpl implements RoleSystemMenuService {

	@Autowired
	private RoleSystemMenuDao novaRoleSystemMenuDao;

	@Override
	public List<RoleSystemMenu> findMenuByRole(int roleId) {
		return novaRoleSystemMenuDao.query()
				.add(Restrictions.eq("Roleid", roleId)).list();
	}

}
